package com.example.sls.service.teacher.publish;

import com.example.sls.pojo.teacher.proSet.ProSet;
import com.example.sls.pojo.teacher.publish.Publish;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PublishService {

    //发布题集
    Boolean publishSet(Publish publish);

    //在该班级内删除已发布的题集
    Boolean deleteSet(Integer setId, Integer classId);

    //查看在指定班级发布的所有题集(分页)
    PageInfo<Publish> getPublishInfoByCId(Integer classId, Integer pageNum, Integer pageSize);

    //查看当前老师创建的、未在当前班级发布的题集信息(分页)
    List<ProSet> getUnpublishedProset(Integer teacherId, Integer classId );

    //查看当前老师创建的、未在当前班级发布的题集题号
    List<Integer> getUnpublishedSetId(Integer teacherId, Integer classId );

    //查看所有发布信息(分页)
    PageInfo<Publish> getPublishInfo(Integer pageNum, Integer pageSize);


    Integer getMaxId();

    Integer getCount();
}
